<!-- Product.vue -->
<script setup>
defineProps({
  id: String,
  inStock: Boolean
})
</script>

<template>
  <div>
    <h2>Product {{ id }}</h2>
    <p v-if="inStock">In Stock</p>
    <p v-else>Out of Stock</p>
  </div>
</template>